<?php
namespace slinks\core\dependencyInjectionExt\annotation;

use slinks\common\addendum\Annotation;

/**
 * Can be used to call to configure the service after instantiation
 * (the callable is passed the service instance as an argument).
 * @author navid
 *
 * @Target({"class"})
 */
class Configurator extends Annotation {
	
	/**
	 * The function to call on the service. 
	 * Alternatively @PostConstruct may be used to annotate the specific fucntion within the given Service class. 
	 * @var string $function
	 */
	public $function;

	/**
	 * The service to call the method on. 
	 * @var string $service
	 */
	public $service;

	/**
	 * The class to call the method on.
	 * @var string $class
	 */
	public $class;
	
	/**
	 * The method to call if either class of service are specified.  
	 * @var string $method
	 */
	public $method;
	
}

